<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Site_user extends CI_Controller {
	
	function __construct()	
	{
		parent::__construct();
		$this->is_logged_in();
	}

	function sale_view() {
		$this->load->view('usersite/sale_view');
	}
	
	function is_logged_in()
	{
		$is_logged_in = $this->session->userdata('is_logged_in');
		if(!isset($is_logged_in) || $is_logged_in != true)
		{
			echo 'Access Denied Login';
			die();
		}
	}

}